package jpsearchcore;



public class ExtDescription {
	private String tnFromNameSpace = "";
	private String tnFromNameSpacePrefix = "";
	private String tnContent = "";
	
	private String lvFromControlledVocabularyOfLiterals = "";
	private String lvFromGrammarOfLiterals = "";
	private String lvContent = "";
	
	private String rvFromNameSpace = "";
	private String rvContent = "";
	
	private String svFromNameSpace = "";
	private Object svContent = "";
		
	public ExtDescription(ExternalDescription ed){
		tnFromNameSpace = ed.getTagName().getFromNameSpace();
		tnFromNameSpacePrefix = ed.getTagName().getFromNameSpacePrefix();
		tnContent = ed.getTagName().getContent();
		
		lvFromControlledVocabularyOfLiterals = ed.getLiteralValue().getFromControlledVocabularyOfLiterals();
		lvFromGrammarOfLiterals = ed.getLiteralValue().getFromGrammarOfLiterals();
		lvContent = ed.getLiteralValue().getContent();
		
		rvFromNameSpace = ed.getResourceValue().getFromNameSpace();
		rvContent = ed.getResourceValue().getContent();
		
		svFromNameSpace = ed.getStructuredValue().getFromNameSpace();
		if(ed.getStructuredValue().getContent().size() > 0)
			for(Object o : ed.getStructuredValue().getContent()){
				svContent += "[" +  o.toString() + "]";
			}	
	}
	
	public ExtDescription(String tnFromNameSpace, String tnFromNameSpacePrefix,
			String tnContent, String lvFromControlledVocabularyOfLiterals,
			String lvFromGrammarOfLiterals, String lvContent,
			String rvFromNameSpace, String rvContent, String svFromNameSpace,
			String svContent) {
		this.tnFromNameSpace = tnFromNameSpace;
		this.tnFromNameSpacePrefix = tnFromNameSpacePrefix;
		this.tnContent = tnContent;
		this.lvFromControlledVocabularyOfLiterals = lvFromControlledVocabularyOfLiterals;
		this.lvFromGrammarOfLiterals = lvFromGrammarOfLiterals;
		this.lvContent = lvContent;
		this.rvFromNameSpace = rvFromNameSpace;
		this.rvContent = rvContent;
		this.svFromNameSpace = svFromNameSpace;
		this.svContent = svContent;
	}
	public String getTnFromNameSpace() {
		return tnFromNameSpace;
	}
	public void setTnFromNameSpace(String tnFromNameSpace) {
		this.tnFromNameSpace = tnFromNameSpace;
	}
	public String getTnFromNameSpacePrefix() {
		return tnFromNameSpacePrefix;
	}
	public void setTnFromNameSpacePrefix(String tnFromNameSpacePrefix) {
		this.tnFromNameSpacePrefix = tnFromNameSpacePrefix;
	}
	public String getTnContent() {
		return tnContent;
	}
	public void setTnContent(String tnContent) {
		this.tnContent = tnContent;
	}
	public String getLvFromControlledVocabularyOfLiterals() {
		return lvFromControlledVocabularyOfLiterals;
	}
	public void setLvFromControlledVocabularyOfLiterals(
			String lvFromControlledVocabularyOfLiterals) {
		this.lvFromControlledVocabularyOfLiterals = lvFromControlledVocabularyOfLiterals;
	}
	public String getLvFromGrammarOfLiterals() {
		return lvFromGrammarOfLiterals;
	}
	public void setLvFromGrammarOfLiterals(String lvFromGrammarOfLiterals) {
		this.lvFromGrammarOfLiterals = lvFromGrammarOfLiterals;
	}
	public String getLvContent() {
		return lvContent;
	}
	public void setLvContent(String lvContent) {
		this.lvContent = lvContent;
	}
	public String getRvFromNameSpace() {
		return rvFromNameSpace;
	}
	public void setRvFromNameSpace(String rvFromNameSpace) {
		this.rvFromNameSpace = rvFromNameSpace;
	}
	public String getRvContent() {
		return rvContent;
	}
	public void setRvContent(String rvContent) {
		this.rvContent = rvContent;
	}
	public String getSvFromNameSpace() {
		return svFromNameSpace;
	}
	public void setSvFromNameSpace(String svFromNameSpace) {
		this.svFromNameSpace = svFromNameSpace;
	}
	public Object getSvContent() {
		return svContent;
	}
	public void setSvContent(Object svContent) {
		this.svContent = svContent;
	}
	
	
}
